A. java.lang package
B. java.util package
C. java.awt package
D. java.io package
Advertisement
Related Mcqs:
- Suspend thread can be revived by using ?
- A. yield() method B. Suspend() method C. start() method D. resume() method...
- Name the keyword that makes a variable belong to a class, rather than being defined for each instance of the class?
- A. abstract B. static C. volatile D. final...
- Suppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct ?
- A. From within protected methods you do not have access to public methods. B. This method is only accessible from inside the class itself and from inside all subclasses. C. In a class, you cannot declare methods with a lower visibility than the visibility of the class in which it is defined. D. This method...
- A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction ?
- A. Declare the method with the keyword public. B. Declare the method with the keyword private. C. Do not declare the method with any accessibility modifiers. D. Declare the method with the keyword public and private....
- Which statements are most accurate regarding the following classes? class A{private int i; protected int j; } class B extends A{ private int k; protected int m; } ?
- A. An object of B contains data fields j, k, m B. An object of B contains data fields k, m C. An object of B contains data fields j, m D. An object of B contains data fields i, j, k, m...
- Which collection class associates values witch keys, and orders the keys according to their natural order ?
- A. java.util.LinkedList B. java.util.TreeMap C. java.util.SortedSet D. java.util.HashSet...
- Which command disassembles a class file_______________?
- A. javacmd B. javaamd C. javap D. java...
- What is the output for the below code ? public class Test{public static void main(String[] args){int i = 010; int j = 07;System.out.println(i); System.out.println(j); } } ?
- A. 7 8 B. 8 7 C. 9 8 D. None...
- The class java.sql.Timestamp is associated with _____________?
- A. java.util.Date B. java.util.Time C. java.sql.Time D. None of above...
- What will the output of the following program? public class Test{ public static void main(String args[]){float f = (1 / 4) * 10; int i = Math.round(f); System.out.println(i); } } ?
- A. 0 B. 1 C. 2 D. 3...
Advertisement